mapsend: Tweak possible C89 issue.
authoroliskoli <oliskoli>
Tue, 21 Aug 2007 19:24:59 +0000 (19:24 +0000)
committeroliskoli <oliskoli>
Tue, 21 Aug 2007 19:24:59 +0000 (19:24 +0000)
mapsend.c

index b7910bf561117387b4b8d57a4bb0eae37679546a..ab91003a6bdf783d17a5d46fabd662b88cfe3663 100644 (file)
--- a/mapsend.c
+++ b/mapsend.c
@@ -505,8 +505,8 @@ static void
 mapsend_wpt_write(void)
 {
        mapsend_hdr hdr = {13, {"4D533330 MS"}, {"30"}, ms_type_wpt, {0, 0, 0}};
-       int wpt_count = waypt_count();
        int n = 0;
+       int wpt_count = waypt_count();
        
        if (global_opts.objective == trkdata) {
                mapsend_track_write();